package org.dht.com.tra.str;

import org.dht.com.msg.BigMessage;
import org.dht.com.msg.Message;
import org.dht.com.tra.BytesTransfer;

/**
 * The <code>TransferObjectManagerStructure</code> class is an
 * <code>BytesTransfer</code> Implement all transfer for data structure
 * 
 */
public class TransferObjectManagerStructure implements BytesTransfer {

	/**
	 * Reference to CommunicationDataStructure
	 */
	private CommunicationDataStructure communicationDataStructure;

	/**
	 * Builds a TransferObjectManagerStructure
	 * 
	 * @param communicationDataStructure
	 */
	public TransferObjectManagerStructure(
			CommunicationDataStructure communicationDataStructure) {
		this.communicationDataStructure = communicationDataStructure;
	}

	/**
	 * Send message for CommunicationDataStructure
	 */
	public void send(Message message) {
		communicationDataStructure.notifyUnicast(message);
	}

	/**
	 * Send big message for CommunicationDataStructure
	 */
	public void send(BigMessage message) {
		communicationDataStructure.notifyUnicast(message);
	}

	/**
	 * Not implemented
	 */
	public Message reciever() {
		return null;
	}

	/**
	 * Not implemented
	 */
	public void stop() {

	}

}
